GUI with 2D


  1. Apple GUI design

https://developer.apple.com/library/content/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/Introduction/Introduction.html#//apple_ref/doc/uid/TP40007533-SW1

 

  1. Coordinates
  • Any point in the projective plane is represented by a triple (XYZ), called the homogeneous coordinates or projective coordinates of the point, where XY and Z are not all 0, and used in projective geometry

A point in the plane may be represented in homogeneouscoordinates by a triple (xyz) where x/z and y/z arethe Cartesian coordinates of the point. It helps on projective calculation.

Given a point (xy) on the Euclidean plane, for any non-zero realnumber Z, the triple (xZyZZ) is called a set of homogeneouscoordinates for the point.

 

 

  • Others

           Cylindricaland spherical coordinate systems (柱坐标,球坐标)

           Polarcoordinate system (极坐标)


  1. Fixed point arithmetic

https://en.wikipedia.org/wiki/Fixed-point_arithmetic

Fixedpoint can also represents fraction but not only integer; its difference withfloat point is that the scaling factor is same for all values of the same type(like Q16.16), while float point can change the exponent to adjust the scalingfactor. Advantage of FLP is it can represent a large range of numbers with samebits as fixed point.

 

  1. Points vs pixels

https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/CocoaDrawingGuide/Transforms/Transforms.html#//apple_ref/doc/uid/TP40003290-CH204-BCIDJJBI

 

http://blog.fluidui.com/designing-for-mobile-101-pixels-points-and-resolutions/

 

https://developer.apple.com/library/content/documentation/2DDrawing/Conceptual/DrawingPrintingiOS/GraphicsDrawingOverview/GraphicsDrawingOverview.html

 

https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Applying_styles_and_colors#A_lineWidth_example

 

  1. RectInset Usage

https://www.natashatherobot.com/ios-stretchable-button-uiedgeinsetsmake/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值